package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Map;

/**
 * <p>
 * 移位明细DTO
 * </p>
 *
 * @author LEO
 * @since 2020-08-24
 */
@Data
@ApiModel(value="MoveItemVO对象", description="移位明细")
public class MoveItemVO implements Serializable {


    @ApiModelProperty(value = "数据标识")
    private String code;

    @ApiModelProperty(value = "所属机构")
    private String groupCode;

    @ApiModelProperty(value = "移位单号")
    private String moveCode;

    @ApiModelProperty(value = "库存标识")
    private String inventoryCode;

    @ApiModelProperty(value = "商品编码")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    private String goodCode;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "规格")
    private String spec;

    @ApiModelProperty(value = "商品条码")
    private String goodsBarCode;

    @ApiModelProperty(value = "货主编码")
    private String shipmentCode;

    @ApiModelProperty(value = "入驻商 名称")
    private String shipmentName;

    @ApiModelProperty(value = "单位")
    private String goodsUnit;

    @ApiModelProperty(value = "单位名称")
    private String goodsUnitName;

    @ApiModelProperty(value = "生产日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtManufacture;

    @ApiModelProperty(value = "库存数量")
    private BigDecimal num;

    @ApiModelProperty(value = "数量，页面用的")
    private BigDecimal totalQuantity;

    @ApiModelProperty(value = "过期日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtExpire;

    @ApiModelProperty(value = "存货日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtStock;

    @ApiModelProperty(value = "供应商")
    private String supplier;

    @ApiModelProperty(value = "序列号")
    private String serialNumber;

    @ApiModelProperty(value = "扩展1")
    private String extendOne;

    @ApiModelProperty(value = "扩展2")
    private String extendTwo;

    @ApiModelProperty(value = "扩展3")
    private BigDecimal extendThree;

    @ApiModelProperty(value = "扩展4")
    private BigDecimal extendFour;

    @ApiModelProperty(value = "扩展5")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime extendFive;

    @ApiModelProperty(value = "扩展6")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime extendSix;


    @ApiModelProperty(value = "批次号")
    private String lot;

    @ApiModelProperty(value = "批次号")
    private String receiveLot;

    @ApiModelProperty(value = "锁定状态")
    private Integer isLock;

    @ApiModelProperty(value = "锁定状态名称")
    private String lockName;

    @ApiModelProperty(value = "库存状态（待弃用）")
    private String status;

    @ApiModelProperty(value = "库存状态")
    private String goodsStatus;

    @ApiModelProperty(value = "库存状态")
    private String goodsStatusName;

    @ApiModelProperty(value = "移位数量（计划移位数量）")
    private BigDecimal moveQuantity;

    @ApiModelProperty(value = "待上架数量，PDA操作时使用")
    private BigDecimal unPutawayQuantity;

    @ApiModelProperty(value = "已移位数量，即已上架数量")
    private BigDecimal movedQuantity;

    @ApiModelProperty(value = "已下架数量;动态计算，等于：移位总数量 - 待上架数量 - 已上架数量 ")
    private BigDecimal putDownQuantity;

    @ApiModelProperty(value = "库位")
    private String location;

    @ApiModelProperty(value = "库位编码")
    private String locationName;

    @ApiModelProperty(value = "移入库位")
    private String targetLocation;

    @ApiModelProperty(value = "移入库位")
    private String targetLocationName;

    @ApiModelProperty(value = "库存容器号")
    private String containerBarCode;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "区域")
    private String spaceName;

    @ApiModelProperty(value = "任务号")
    private String taskCode;

    @ApiModelProperty(value = "作业人")
    private String operatorName;

    @ApiModelProperty(value = "是否可编辑，0-是，1-否")
    private Integer edit = 0;

    @ApiModelProperty(value = "任务item的计划数量， 与moveQuantity字段一致")
    private BigDecimal planQuantity;

    @ApiModelProperty(value = "批次规则")
    private Map<String, Object> batchRule;


}
